﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="SES.CMS.Register" Title="Untitled Page" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 24px;
        }
        #RegisterForm
        {
            margin: 0 30px;
        }
        .done
        {
            background: url("images/done.png" ) no-repeat;
            width: 101px;
            height: 31px;
            border: none;
        }
        .txtcapcha
        {
        	clear:both;
        	margin-left:0px;
        }
        
        
        .imgCapcha
        {
            width:108px; height:31px; margin:0;padding:0;margin-left:-170px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="RegisterForm">
        <h3 style="margin-bottom: 20px; margin-top: 0px; padding-top: 0px;">
            ĐĂNG KÝ THÀNH VIÊN</h3>
        <table class="pmb-table">
            <tbody>
                <tr>
                    <td>
                        <span>Tên hiển thị&nbsp;<font color="red">*</font></span>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtClientName" CssClass="form_control" Style="width: 240px"
                            type="text" TabIndex="1"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <span>Username&nbsp;<font color="red">*</font></span>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtUsername" CssClass="form_control" Style="width: 240px"
                            type="text" TabIndex="2"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ControlToValidate="txtUsername" Display="Dynamic" 
                            ErrorMessage="Bạn chưa điền tên đăng nhập" ValidationGroup="a"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>Mật khẩu&nbsp;<font color="red">*</font></span>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtPassword" CssClass="form_control" Style="width: 240px"
                            type="text" TextMode="Password" TabIndex="3"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                            ControlToValidate="txtPassword" ErrorMessage="Bạn chưa nhập mật khẩu" 
                            ValidationGroup="a"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <span>Xác nhận mật khẩu&nbsp;<font color="red">*</font></span>
                    </td>
                    <td class="style1">
                        <asp:TextBox runat="server" ID="txtRePassword" CssClass="form_control" Style="width: 240px"
                            type="text" TextMode="Password" TabIndex="4" 
                            ontextchanged="txtRePassword_TextChanged"></asp:TextBox>
                    </td>
                    <td class="style1">
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="txtRePassword" ControlToValidate="txtPassword" 
                            ErrorMessage="Mật khẩu không khớp" ValidationGroup="ab" Display="Dynamic"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>Email&nbsp;<font color="red">*</font></span>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtEmail" CssClass="form_control" Style="width: 240px"
                            type="text" TabIndex="5"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtEmail" Display="Dynamic" 
                            ErrorMessage="Bạn phải nhập đúng Email" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            ValidationGroup="a"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>Điện thoại&nbsp;<font color="red">*</font></span>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtPhone" CssClass="form_control" Style="width: 240px"
                            type="text" TabIndex="6"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>Di động&nbsp;<font color="red">*</font></span>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtMobile" CssClass="form_control" Style="width: 240px"
                            type="text" TabIndex="7"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <span>Địa chỉ </span>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtAddress" CssClass="form_control" Style="width: 240px"
                            type="text" TabIndex="8"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <span>Mã bảo vệ: </span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtbv" runat="server"  Width="70px" Height="20px" CssClass="txtcapcha" />
                        
                            
                        <asp:Label ID="Label5" Text=" " Width="90px" runat="server"></asp:Label>
                    </td>
                    <td style="text-align:left;"><cc1:CaptchaControl CssClass="imgCapcha" ID="ccJoin" runat="server" validateIntegratedModeConfiguration="false" CaptchaHeight="31" CaptchaWidth="90" CaptchaBackgroundNoise="Extreme" CaptchaLength="5" /></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button runat="server" ID="btnXacNhan" Text="" class="done" OnClick="btnXacNhan_Click" ValidationGroup="a"
                            TabIndex="10" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
